/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.shop.entity.cart;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.thinkgem.jeesite.modules.hk.sys.entity.user.HkUser;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 购物车Entity
 * @author 罗天文
 * @version 2018-07-09
 */
public class HkShopUserCart extends DataEntity<HkShopUserCart> {
	
	private static final long serialVersionUID = 1L;
	private String productId;		// 商品id
	private String skuId;		// skuid
	private String imgSrc;		// 图片路径
	private String title;		// 名称
	private String integral;		// 乐币
	private String activityType;		// 活动类型1爆款2秒杀 3折扣
	private String activityPrice;		// 活动乐币
	private Date limittime;		// 限制时间
	private String number;		// 数量
	private String colorname;		// 颜色
	private String specname;		// 规格
	private HkUser hkUserId;		// 自媒体商户id
	private HkUser user;		// 用户id
	
	public HkShopUserCart() {
		super();
	}

	public HkShopUserCart(String id){
		super(id);
	}

	@Length(min=0, max=32, message="商品id长度必须介于 0 和 32 之间")
	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}
	
	@Length(min=0, max=32, message="skuid长度必须介于 0 和 32 之间")
	public String getSkuId() {
		return skuId;
	}

	public void setSkuId(String skuId) {
		this.skuId = skuId;
	}
	
	@Length(min=0, max=200, message="图片路径长度必须介于 0 和 200 之间")
	public String getImgSrc() {
		return imgSrc;
	}

	public void setImgSrc(String imgSrc) {
		this.imgSrc = imgSrc;
	}
	
	@Length(min=0, max=200, message="名称长度必须介于 0 和 200 之间")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@Length(min=0, max=11, message="乐币长度必须介于 0 和 11 之间")
	public String getIntegral() {
		return integral;
	}

	public void setIntegral(String integral) {
		this.integral = integral;
	}
	
	@Length(min=0, max=2, message="活动类型1爆款2秒杀 3折扣长度必须介于 0 和 2 之间")
	public String getActivityType() {
		return activityType;
	}

	public void setActivityType(String activityType) {
		this.activityType = activityType;
	}
	
	@Length(min=0, max=11, message="活动乐币长度必须介于 0 和 11 之间")
	public String getActivityPrice() {
		return activityPrice;
	}

	public void setActivityPrice(String activityPrice) {
		this.activityPrice = activityPrice;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getLimittime() {
		return limittime;
	}

	public void setLimittime(Date limittime) {
		this.limittime = limittime;
	}
	
	@Length(min=0, max=11, message="数量长度必须介于 0 和 11 之间")
	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}
	
	@Length(min=0, max=100, message="颜色长度必须介于 0 和 100 之间")
	public String getColorname() {
		return colorname;
	}

	public void setColorname(String colorname) {
		this.colorname = colorname;
	}
	
	@Length(min=0, max=100, message="规格长度必须介于 0 和 100 之间")
	public String getSpecname() {
		return specname;
	}

	public void setSpecname(String specname) {
		this.specname = specname;
	}
	
	public HkUser getHkUserId() {
		return hkUserId;
	}

	public void setHkUserId(HkUser hkUserId) {
		this.hkUserId = hkUserId;
	}
	
	public HkUser getUser() {
		return user;
	}

	public void setUser(HkUser user) {
		this.user = user;
	}
	
}